package com.xian.yoga.entity;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * meal
 * @author 
 */
public class Meal implements Serializable {
    private Integer mealId;

    private String mealName;

    private BigDecimal mealPrice;

    private static final long serialVersionUID = 1L;

    public Integer getMealId() {
        return mealId;
    }

    public void setMealId(Integer mealId) {
        this.mealId = mealId;
    }

    public String getMealName() {
        return mealName;
    }

    public void setMealName(String mealName) {
        this.mealName = mealName;
    }

    public BigDecimal getMealPrice() {
        return mealPrice;
    }

    public void setMealPrice(BigDecimal mealPrice) {
        this.mealPrice = mealPrice;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Meal other = (Meal) that;
        return (this.getMealId() == null ? other.getMealId() == null : this.getMealId().equals(other.getMealId()))
            && (this.getMealName() == null ? other.getMealName() == null : this.getMealName().equals(other.getMealName()))
            && (this.getMealPrice() == null ? other.getMealPrice() == null : this.getMealPrice().equals(other.getMealPrice()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getMealId() == null) ? 0 : getMealId().hashCode());
        result = prime * result + ((getMealName() == null) ? 0 : getMealName().hashCode());
        result = prime * result + ((getMealPrice() == null) ? 0 : getMealPrice().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", mealId=").append(mealId);
        sb.append(", mealName=").append(mealName);
        sb.append(", mealPrice=").append(mealPrice);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}